package com.liuyc.lib.image.loader.utils.imp

import android.content.Context
import com.bumptech.glide.load.Key
import com.bumptech.glide.load.engine.cache.SafeKeyGenerator
import java.io.File
import java.security.MessageDigest

/**
 * 图片加载 的一些 辅助工具
 */
object ImageLoaderUtilsImp {


    /**
     * 获取本地缓存图片的具体位置
     */
    fun getCacheFile(content: Context, url: String): File?{

        var safeKeyGenerator = SafeKeyGenerator()




        safeKeyGenerator.getSafeKey(object : Key{
            override fun equals(other: Any?): Boolean {
                return super.equals(other)
            }

            override fun hashCode(): Int {
                return super.hashCode()
            }

            override fun toString(): String {
                return super.toString()
            }

            override fun updateDiskCacheKey(messageDigest: MessageDigest) {
                TODO("Not yet implemented")
            }
        })


        return null
    }


}